package com.example.blog.model;

import com.example.blog.utils.DateUtils;
import lombok.Data;

import java.util.Date;

/**
 * 博客信息实体类
 */
@Data
public class BlogInfo {
    private Integer id;
    private String title;
    private String content;
    private Integer userId;
    private boolean isLoginUser;
    private Integer deleteFlag;
    private Date createTime;
    private Date UpdateTime;


    //转换时区
    public String getCreateTime() {
        return DateUtils.dateFormat(createTime);
    }
}
